<?php
	include "../ini.php";
	include "../../libraries/xl_bang_bao_gia.php";
	$dt_xl_bang_bao_gia =  new xl_bang_bao_gia;
	$bang_bao_gia = $dt_xl_bang_bao_gia->xem(3);	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include"../includes/js_css.php"?>
</head>
<body>
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
  
  <?php include"../widgets/sidebar.php"?>
  <!-- End #sidebar -->
  
  <div id="main-content"> <!-- Main Content Section with everything -->
    
    <?php include"../widgets/noscript.php"?>
    <div class="clear"></div>
    <!-- End .clear -->
    
    <div class="content-box"><!-- Start Content Box -->
      
      <div class="content-box-header">
        <h3>Cập nhật bảng báo giá</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      
      <div class="content-box-content"> 
        
        <!-- End #tab1 -->
        
        <div class="tab-content default-tab" id="tab2">
          <form action="edit_sm.php" method="post"  enctype="multipart/form-data" name="f2">
            <fieldset>
              <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
              <table width="100%">
                <tbody>
                  <div>
                  <?php message()?>
                </div>
                  <tr class="alt-row">
                    <td >Tiêu để</td>
                    <td ><input class="text-input medium-input datepicker" type="text" id="tieu_de" name="tieu_de" value="<?php echo $bang_bao_gia['tieu_de']?>"/></td>
                  </tr>
                  
                  
                                    
                  <tr>
                    <td>Tên file</td>
                    <td>	<input class="text-input small-input" type="file" id="ten_file" name="ten_file" value="<?php echo $bang_bao_gia['ten_file']?>"/>(*.doc)
                      </td>
                  </tr>
                 <tr class="alt-row">
                    <td>Trạng thái</td>
                    <td><input type="radio" name="trang_thai" value="1" <?php if($bang_bao_gia['trang_thai']==1) echo (" checked='checked'")?>  /> Duyệt<br />
						<input type="radio" name="trang_thai" value="0"<?php if($bang_bao_gia['trang_thai']==0) echo (" checked='checked'")?>/> Chưa duyệt</td>  
                  </tr>         
                  
                  
                  
                  <tr>
                    <td style="text-align:center !important" colspan="2"><input class="button" type="submit" value="Cập nhật" name="cap_nhat">
                      
                      <input class="button" type="button" value="Thoát" onclick="window.location.href='../home/index.php'"></td>
                  </tr>
                </tbody>
              </table>
              
            </fieldset>
            <div class="clear"></div>
            <!-- End .clear -->
            
          </form>
        </div>
        <!-- End #tab2 --> 
        
      </div>
      <!-- End .content-box-content --> 
      
    </div>
    <!-- End .content-box -->
    
    <div class="clear"></div>
    <?php include"../widgets/footer.php"?>
  </div>
  <!-- End #main-content --> 
  
</div>
</body>
</html>
